<template>
	<w-app-container class="app-home">
		<fx-page-header title="首页"></fx-page-header>
		<div class="page-welcome-container">
			<fxPageWelcome ref="fxPageWelcome" class="page-welcome" welcomeText="欢迎使用MES"></fxPageWelcome>
		</div>
	</w-app-container>
</template>
<script>
import fxPageWelcome from '@/components/common/Fx-page-welcome.vue'
export default {
	name: 'home',
	components: {
		fxPageWelcome
	},
	created () {
		this.freshToken()
	},
	methods: {
		freshToken () {
			if (!window.localStorage.token) {
				window.location.href = '/'
			}
		}
	}
}
</script>
<style lang="stylus" scoped>
@import '~$assets/stylus/varsty.styl'
.app-home {
	.page-welcome-container {
		text-align center
		margin 0 auto
		margin-top 15%
	}
}
</style>

